package com.ucode.application.form.sys;

import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;
import com.ucode.springboot.starter.web.validator.annotation.CheckMember;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@SuppressWarnings("serial")
@ApiModel(value="数据权限->角色")
public class DataRoleForm implements Serializable{

    /**
     * 名称
     */
    @ApiModelProperty(value = "角色名称",required=true)
    @NotBlank(message = "角色名称不能为空")
    @Length(max=100,message = "角色名称最大100字符")
    private String name;
    
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注",required=false)
    @Length(max=255,message = "备注最大255字符")
    private String remark;
    
    /**
     * 启用状态；0->禁用；1->启用
     */
    @ApiModelProperty(value = "状态 :1启用 0禁用",required=false,example="1")
    @CheckMember(value={"1","0"},message="状态非法")
    private Integer statuz;
    
    @ApiModelProperty(value = "角色数据权限项",required=false)
    private List<DataRoleModuleItem> item;
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatuz() {
        return statuz;
    }

    public void setStatuz(Integer statuz) {
        this.statuz = statuz;
    }

    public List<DataRoleModuleItem> getItem() {
        return item;
    }

    public void setItem(List<DataRoleModuleItem> item) {
        this.item = item;
    }
}
